<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SkyGameEngine2d: Render类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="shpe.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SkyGameEngine2d
   &#160;<span id="projectnumber">0.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="class_render-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">Render类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>渲染  
 <a href="class_render.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_render_8h_source.html">Render.h</a>&gt;</code></p>
<div class="dynheader">
类 Render 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_render.png" usemap="#Render_map" alt=""/>
  <map id="Render_map" name="Render_map">
<area href="class_i_direct_render.html" title="Direct11 绘制相关的接口" alt="IDirectRender" shape="rect" coords="0,56,129,80"/>
<area href="class_i_render.html" title="渲染接口" alt="IRender" shape="rect" coords="139,56,268,80"/>
<area href="class_singleton.html" alt="Singleton&lt; Render &gt;" shape="rect" coords="278,56,407,80"/>
<area href="class_non_copyable.html" title="不可拷贝对象的基类" alt="NonCopyable" shape="rect" coords="278,0,407,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a4e0b93cee5690e5c16e753677d7ab50e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_render.html#a4e0b93cee5690e5c16e753677d7ab50e">setClearColor</a> (const <a class="el" href="class_color.html">Color</a> &amp;clear_color)</td></tr>
<tr class="memdesc:a4e0b93cee5690e5c16e753677d7ab50e"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置清除目标时的颜色  <a href="#a4e0b93cee5690e5c16e753677d7ab50e">更多...</a><br /></td></tr>
<tr class="separator:a4e0b93cee5690e5c16e753677d7ab50e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94cf53515f3d3822651fcea025439888"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_render.html#a94cf53515f3d3822651fcea025439888">isInit</a> () const</td></tr>
<tr class="memdesc:a94cf53515f3d3822651fcea025439888"><td class="mdescLeft">&#160;</td><td class="mdescRight">是否初始化  <a href="#a94cf53515f3d3822651fcea025439888">更多...</a><br /></td></tr>
<tr class="separator:a94cf53515f3d3822651fcea025439888"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9bc40be61ea98bb73470e9c1443c7301"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_render.html#a9bc40be61ea98bb73470e9c1443c7301">getDrawCallCount</a> ()</td></tr>
<tr class="memdesc:a9bc40be61ea98bb73470e9c1443c7301"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取当前帧的DrawCall 次数  <a href="#a9bc40be61ea98bb73470e9c1443c7301">更多...</a><br /></td></tr>
<tr class="separator:a9bc40be61ea98bb73470e9c1443c7301"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace96e8b8e05944d5aa54814bcfba6dd7"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_render.html#ace96e8b8e05944d5aa54814bcfba6dd7">getDrawCmdCount</a> ()</td></tr>
<tr class="memdesc:ace96e8b8e05944d5aa54814bcfba6dd7"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取当前帧的绘制命令总数  <a href="#ace96e8b8e05944d5aa54814bcfba6dd7">更多...</a><br /></td></tr>
<tr class="separator:ace96e8b8e05944d5aa54814bcfba6dd7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a12734ec7180016899fd04f6d9c2076a3"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_render.html#a12734ec7180016899fd04f6d9c2076a3">getVertexCount</a> ()</td></tr>
<tr class="memdesc:a12734ec7180016899fd04f6d9c2076a3"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取当前帧绘制的顶点总数  <a href="#a12734ec7180016899fd04f6d9c2076a3">更多...</a><br /></td></tr>
<tr class="separator:a12734ec7180016899fd04f6d9c2076a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac825f1d7be2379526f2d5e55f52012e5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_render.html#ac825f1d7be2379526f2d5e55f52012e5">addRenderCommand</a> (<a class="el" href="class_render_command.html">RenderCommand</a> *cmd)</td></tr>
<tr class="memdesc:ac825f1d7be2379526f2d5e55f52012e5"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加渲染命令  <a href="#ac825f1d7be2379526f2d5e55f52012e5">更多...</a><br /></td></tr>
<tr class="separator:ac825f1d7be2379526f2d5e55f52012e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0f4b917605cb15902f8d045a4197faf"><td class="memItemLeft" align="right" valign="top"><a id="ab0f4b917605cb15902f8d045a4197faf"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_render.html#ab0f4b917605cb15902f8d045a4197faf">~Render</a> ()</td></tr>
<tr class="memdesc:ab0f4b917605cb15902f8d045a4197faf"><td class="mdescLeft">&#160;</td><td class="mdescRight">析构 <br /></td></tr>
<tr class="separator:ab0f4b917605cb15902f8d045a4197faf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5102a025eb37b4462a0f2575858104eb"><td class="memItemLeft" align="right" valign="top">virtual ID3D11Device *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_render.html#a5102a025eb37b4462a0f2575858104eb">getD3dDevice</a> () override</td></tr>
<tr class="memdesc:a5102a025eb37b4462a0f2575858104eb"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取d3d 设备  <a href="#a5102a025eb37b4462a0f2575858104eb">更多...</a><br /></td></tr>
<tr class="separator:a5102a025eb37b4462a0f2575858104eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a012aa364ec9a0100d25bfaca19a6d4db"><td class="memItemLeft" align="right" valign="top">virtual ID3D11DeviceContext *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_render.html#a012aa364ec9a0100d25bfaca19a6d4db">getD3dDeviceContext</a> () override</td></tr>
<tr class="memdesc:a012aa364ec9a0100d25bfaca19a6d4db"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取d3d 设备上下文  <a href="#a012aa364ec9a0100d25bfaca19a6d4db">更多...</a><br /></td></tr>
<tr class="separator:a012aa364ec9a0100d25bfaca19a6d4db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91168959d0f94062c1446488234b1772"><td class="memItemLeft" align="right" valign="top">virtual ID3D11RenderTargetView *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_render.html#a91168959d0f94062c1446488234b1772">getD3dRenderTargetView</a> () override</td></tr>
<tr class="memdesc:a91168959d0f94062c1446488234b1772"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取d3d 渲染目标  <a href="#a91168959d0f94062c1446488234b1772">更多...</a><br /></td></tr>
<tr class="separator:a91168959d0f94062c1446488234b1772"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86a260dd473715e7fd72813f3a4fc8aa"><td class="memItemLeft" align="right" valign="top">virtual IDXGISwapChain1 *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_render.html#a86a260dd473715e7fd72813f3a4fc8aa">getD3dSwapChain</a> () override</td></tr>
<tr class="memdesc:a86a260dd473715e7fd72813f3a4fc8aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取d3d 交换链  <a href="#a86a260dd473715e7fd72813f3a4fc8aa">更多...</a><br /></td></tr>
<tr class="separator:a86a260dd473715e7fd72813f3a4fc8aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4dc0a57c630a624477959776b6f3a04a"><td class="memItemLeft" align="right" valign="top">virtual ID3D11DepthStencilView *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_render.html#a4dc0a57c630a624477959776b6f3a04a">getD3dDepthStencilView</a> () override</td></tr>
<tr class="memdesc:a4dc0a57c630a624477959776b6f3a04a"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取深度缓存视图  <a href="#a4dc0a57c630a624477959776b6f3a04a">更多...</a><br /></td></tr>
<tr class="separator:a4dc0a57c630a624477959776b6f3a04a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa82e9acefa6a2dd4e265327220569403"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_render.html#aa82e9acefa6a2dd4e265327220569403">initDirect3D</a> (HWND hwnd, UINT w, UINT h) override</td></tr>
<tr class="memdesc:aa82e9acefa6a2dd4e265327220569403"><td class="mdescLeft">&#160;</td><td class="mdescRight">初始化Direct  <a href="#aa82e9acefa6a2dd4e265327220569403">更多...</a><br /></td></tr>
<tr class="separator:aa82e9acefa6a2dd4e265327220569403"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a56847a1df6747ed092a04608e768e01d"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_render.html#a56847a1df6747ed092a04608e768e01d">ClearDirect3D</a> () override</td></tr>
<tr class="memdesc:a56847a1df6747ed092a04608e768e01d"><td class="mdescLeft">&#160;</td><td class="mdescRight">清理d3d  <a href="#a56847a1df6747ed092a04608e768e01d">更多...</a><br /></td></tr>
<tr class="separator:a56847a1df6747ed092a04608e768e01d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40c4d5998dc2d59f092fe691d8181543"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_render.html#a40c4d5998dc2d59f092fe691d8181543">onResize</a> (HWND hwnd, UINT w, UINT h) override</td></tr>
<tr class="memdesc:a40c4d5998dc2d59f092fe691d8181543"><td class="mdescLeft">&#160;</td><td class="mdescRight">重置视图大小  <a href="#a40c4d5998dc2d59f092fe691d8181543">更多...</a><br /></td></tr>
<tr class="separator:a40c4d5998dc2d59f092fe691d8181543"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5c1aba98760625fee57d9f9076b3961"><td class="memItemLeft" align="right" valign="top">virtual ID2D1RenderTarget *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_render.html#aa5c1aba98760625fee57d9f9076b3961">getD2dRenderTarget</a> () override</td></tr>
<tr class="memdesc:aa5c1aba98760625fee57d9f9076b3961"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取d2d 渲染目标  <a href="#aa5c1aba98760625fee57d9f9076b3961">更多...</a><br /></td></tr>
<tr class="separator:aa5c1aba98760625fee57d9f9076b3961"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f52690d2a6c85fde037bd1b5f0c08a9"><td class="memItemLeft" align="right" valign="top">virtual float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_render.html#a5f52690d2a6c85fde037bd1b5f0c08a9">getDpi</a> () override</td></tr>
<tr class="memdesc:a5f52690d2a6c85fde037bd1b5f0c08a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取dpi 值  <a href="#a5f52690d2a6c85fde037bd1b5f0c08a9">更多...</a><br /></td></tr>
<tr class="separator:a5f52690d2a6c85fde037bd1b5f0c08a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82c852e3516046caa857038ab5c22d5f"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_render.html#a82c852e3516046caa857038ab5c22d5f">renderBegin</a> ()</td></tr>
<tr class="memdesc:a82c852e3516046caa857038ab5c22d5f"><td class="mdescLeft">&#160;</td><td class="mdescRight">开始渲染  <a href="#a82c852e3516046caa857038ab5c22d5f">更多...</a><br /></td></tr>
<tr class="separator:a82c852e3516046caa857038ab5c22d5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb46c8d51ce8c64f59620a6f40ee0aa3"><td class="memItemLeft" align="right" valign="top">virtual HRESULT&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_render.html#acb46c8d51ce8c64f59620a6f40ee0aa3">renderEnd</a> ()</td></tr>
<tr class="memdesc:acb46c8d51ce8c64f59620a6f40ee0aa3"><td class="mdescLeft">&#160;</td><td class="mdescRight">结束渲染  <a href="#acb46c8d51ce8c64f59620a6f40ee0aa3">更多...</a><br /></td></tr>
<tr class="separator:acb46c8d51ce8c64f59620a6f40ee0aa3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad88241896136a791c54fec00e714493"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_render.html#aad88241896136a791c54fec00e714493">render</a> () override</td></tr>
<tr class="memdesc:aad88241896136a791c54fec00e714493"><td class="mdescLeft">&#160;</td><td class="mdescRight">渲染  <a href="#aad88241896136a791c54fec00e714493">更多...</a><br /></td></tr>
<tr class="separator:aad88241896136a791c54fec00e714493"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_non_copyable"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_non_copyable')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="class_non_copyable.html">NonCopyable</a></td></tr>
<tr class="memitem:a501d34ffcc34b30de6d541887a901057 inherit pub_methods_class_non_copyable"><td class="memItemLeft" align="right" valign="top"><a id="a501d34ffcc34b30de6d541887a901057"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>NonCopyable</b> (const <a class="el" href="class_non_copyable.html">NonCopyable</a> &amp;)=delete</td></tr>
<tr class="separator:a501d34ffcc34b30de6d541887a901057 inherit pub_methods_class_non_copyable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3e87997196c6c1abf6131246a5331e3 inherit pub_methods_class_non_copyable"><td class="memItemLeft" align="right" valign="top"><a id="aa3e87997196c6c1abf6131246a5331e3"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>NonCopyable</b> (<a class="el" href="class_non_copyable.html">NonCopyable</a> &amp;&amp;)=delete</td></tr>
<tr class="separator:aa3e87997196c6c1abf6131246a5331e3 inherit pub_methods_class_non_copyable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3b97d1f1e22a24e59619f01c5f81ad9 inherit pub_methods_class_non_copyable"><td class="memItemLeft" align="right" valign="top"><a id="ad3b97d1f1e22a24e59619f01c5f81ad9"></a>
<a class="el" href="class_non_copyable.html">NonCopyable</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="class_non_copyable.html">NonCopyable</a> &amp;)=delete</td></tr>
<tr class="separator:ad3b97d1f1e22a24e59619f01c5f81ad9 inherit pub_methods_class_non_copyable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca1805bcfcb18eb044b585e69a18e1e0 inherit pub_methods_class_non_copyable"><td class="memItemLeft" align="right" valign="top"><a id="aca1805bcfcb18eb044b585e69a18e1e0"></a>
<a class="el" href="class_non_copyable.html">NonCopyable</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (<a class="el" href="class_non_copyable.html">NonCopyable</a> &amp;&amp;)=delete</td></tr>
<tr class="separator:aca1805bcfcb18eb044b585e69a18e1e0 inherit pub_methods_class_non_copyable"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
额外继承的成员函数</h2></td></tr>
<tr class="inherit_header pub_static_methods_class_singleton"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_class_singleton')"><img src="closed.png" alt="-"/>&#160;静态 Public 成员函数 继承自 <a class="el" href="class_singleton.html">Singleton&lt; Render &gt;</a></td></tr>
<tr class="memitem:ac7b8bd773889a70952cd00654e43bbe8 inherit pub_static_methods_class_singleton"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_render.html">Render</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_singleton.html#ac7b8bd773889a70952cd00654e43bbe8">getInstance</a> ()</td></tr>
<tr class="memdesc:ac7b8bd773889a70952cd00654e43bbe8 inherit pub_static_methods_class_singleton"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取单例对象的实例  <a href="class_singleton.html#ac7b8bd773889a70952cd00654e43bbe8">更多...</a><br /></td></tr>
<tr class="separator:ac7b8bd773889a70952cd00654e43bbe8 inherit pub_static_methods_class_singleton"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>渲染 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="ac825f1d7be2379526f2d5e55f52012e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac825f1d7be2379526f2d5e55f52012e5">&#9670;&nbsp;</a></span>addRenderCommand()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Render::addRenderCommand </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_render_command.html">RenderCommand</a> *&#160;</td>
          <td class="paramname"><em>cmd</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>添加渲染命令 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">RenderCommand*</td><td>cmd 绘制命令 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="a56847a1df6747ed092a04608e768e01d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a56847a1df6747ed092a04608e768e01d">&#9670;&nbsp;</a></span>ClearDirect3D()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Render::ClearDirect3D </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>清理d3d </p>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

<p>实现了 <a class="el" href="class_i_direct_render.html#a6d01b0b667c0a9229483ca77a143d55d">IDirectRender</a>.</p>

</div>
</div>
<a id="aa5c1aba98760625fee57d9f9076b3961"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa5c1aba98760625fee57d9f9076b3961">&#9670;&nbsp;</a></span>getD2dRenderTarget()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual ID2D1RenderTarget* Render::getD2dRenderTarget </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取d2d 渲染目标 </p>
<dl class="section return"><dt>返回</dt><dd>ID2D1RenderTarget* </dd></dl>

<p>实现了 <a class="el" href="class_i_direct_render.html#ae059553ad1165c303db0bd50d09cfd3d">IDirectRender</a>.</p>

</div>
</div>
<a id="a4dc0a57c630a624477959776b6f3a04a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4dc0a57c630a624477959776b6f3a04a">&#9670;&nbsp;</a></span>getD3dDepthStencilView()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual ID3D11DepthStencilView* Render::getD3dDepthStencilView </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取深度缓存视图 </p>
<dl class="section return"><dt>返回</dt><dd>ID3D11DepthStencilView* </dd></dl>

<p>实现了 <a class="el" href="class_i_direct_render.html#a2c0d5f3128dab627f8e4ec5b8414b609">IDirectRender</a>.</p>

</div>
</div>
<a id="a5102a025eb37b4462a0f2575858104eb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5102a025eb37b4462a0f2575858104eb">&#9670;&nbsp;</a></span>getD3dDevice()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual ID3D11Device* Render::getD3dDevice </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取d3d 设备 </p>
<dl class="section return"><dt>返回</dt><dd>ID3D11Device * </dd></dl>

<p>实现了 <a class="el" href="class_i_direct_render.html#aa87a969f5ee97a8f77e1de31e491ca28">IDirectRender</a>.</p>

</div>
</div>
<a id="a012aa364ec9a0100d25bfaca19a6d4db"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a012aa364ec9a0100d25bfaca19a6d4db">&#9670;&nbsp;</a></span>getD3dDeviceContext()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual ID3D11DeviceContext* Render::getD3dDeviceContext </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取d3d 设备上下文 </p>
<dl class="section return"><dt>返回</dt><dd>ID3D11DeviceContext* </dd></dl>

<p>实现了 <a class="el" href="class_i_direct_render.html#a2abf755f236c5fe37bd849fb32cd7a3e">IDirectRender</a>.</p>

</div>
</div>
<a id="a91168959d0f94062c1446488234b1772"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a91168959d0f94062c1446488234b1772">&#9670;&nbsp;</a></span>getD3dRenderTargetView()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual ID3D11RenderTargetView* Render::getD3dRenderTargetView </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取d3d 渲染目标 </p>
<dl class="section return"><dt>返回</dt><dd>ID3D11RenderTargetView* </dd></dl>

<p>实现了 <a class="el" href="class_i_direct_render.html#a2b924647dfbacca2d133dd141accabbc">IDirectRender</a>.</p>

</div>
</div>
<a id="a86a260dd473715e7fd72813f3a4fc8aa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a86a260dd473715e7fd72813f3a4fc8aa">&#9670;&nbsp;</a></span>getD3dSwapChain()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual IDXGISwapChain1* Render::getD3dSwapChain </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取d3d 交换链 </p>
<dl class="section return"><dt>返回</dt><dd>IDXGISwapChain1* </dd></dl>

<p>实现了 <a class="el" href="class_i_direct_render.html#aae6ed4c0cd4c748ee4e410f3c819b332">IDirectRender</a>.</p>

</div>
</div>
<a id="a5f52690d2a6c85fde037bd1b5f0c08a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5f52690d2a6c85fde037bd1b5f0c08a9">&#9670;&nbsp;</a></span>getDpi()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual float Render::getDpi </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取dpi 值 </p>
<dl class="section return"><dt>返回</dt><dd>float </dd></dl>

<p>实现了 <a class="el" href="class_i_direct_render.html#a692cfce2ae6b0a0277aae63283d142a1">IDirectRender</a>.</p>

</div>
</div>
<a id="a9bc40be61ea98bb73470e9c1443c7301"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9bc40be61ea98bb73470e9c1443c7301">&#9670;&nbsp;</a></span>getDrawCallCount()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Render::getDrawCallCount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取当前帧的DrawCall 次数 </p>
<pre class="fragment">DrawCall 是指 在当前帧中 调用 DrawIndexed 次数
</pre><dl class="section return"><dt>返回</dt><dd>int </dd></dl>

</div>
</div>
<a id="ace96e8b8e05944d5aa54814bcfba6dd7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ace96e8b8e05944d5aa54814bcfba6dd7">&#9670;&nbsp;</a></span>getDrawCmdCount()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Render::getDrawCmdCount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取当前帧的绘制命令总数 </p>
<dl class="section return"><dt>返回</dt><dd>int </dd></dl>

</div>
</div>
<a id="a12734ec7180016899fd04f6d9c2076a3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a12734ec7180016899fd04f6d9c2076a3">&#9670;&nbsp;</a></span>getVertexCount()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Render::getVertexCount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取当前帧绘制的顶点总数 </p>
<dl class="section return"><dt>返回</dt><dd>int </dd></dl>

</div>
</div>
<a id="aa82e9acefa6a2dd4e265327220569403"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa82e9acefa6a2dd4e265327220569403">&#9670;&nbsp;</a></span>initDirect3D()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool Render::initDirect3D </td>
          <td>(</td>
          <td class="paramtype">HWND&#160;</td>
          <td class="paramname"><em>hwnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UINT&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UINT&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>初始化Direct </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">HWND</td><td>hwnd 当前窗口的句柄 </td></tr>
    <tr><td class="paramname">UINT</td><td>w 视图的宽 </td></tr>
    <tr><td class="paramname">UINT</td><td>h 视图的高 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>bool </dd></dl>

<p>实现了 <a class="el" href="class_i_direct_render.html#aa5383d186b2c2a92c336c35b0f17171b">IDirectRender</a>.</p>

</div>
</div>
<a id="a94cf53515f3d3822651fcea025439888"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a94cf53515f3d3822651fcea025439888">&#9670;&nbsp;</a></span>isInit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Render::isInit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>是否初始化 </p>
<dl class="section return"><dt>返回</dt><dd>bool </dd></dl>

</div>
</div>
<a id="a40c4d5998dc2d59f092fe691d8181543"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a40c4d5998dc2d59f092fe691d8181543">&#9670;&nbsp;</a></span>onResize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Render::onResize </td>
          <td>(</td>
          <td class="paramtype">HWND&#160;</td>
          <td class="paramname"><em>hwnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UINT&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UINT&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>重置视图大小 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">HWND</td><td>hwnd 当前窗口句柄 </td></tr>
    <tr><td class="paramname">UINT</td><td>w 视图的宽 </td></tr>
    <tr><td class="paramname">UINT</td><td>h 视图的高 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

<p>实现了 <a class="el" href="class_i_direct_render.html#a85e120b9e50d12176bf1d65107da9b36">IDirectRender</a>.</p>

</div>
</div>
<a id="aad88241896136a791c54fec00e714493"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aad88241896136a791c54fec00e714493">&#9670;&nbsp;</a></span>render()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Render::render </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>渲染 </p>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

<p>实现了 <a class="el" href="class_i_render.html#ada4fce6f4a082cd164f9db0f55dfbf05">IRender</a>.</p>

</div>
</div>
<a id="a82c852e3516046caa857038ab5c22d5f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a82c852e3516046caa857038ab5c22d5f">&#9670;&nbsp;</a></span>renderBegin()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Render::renderBegin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>开始渲染 </p>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

<p>实现了 <a class="el" href="class_i_render.html#aeb867d8e0c1653aef4006a6831c8923a">IRender</a>.</p>

</div>
</div>
<a id="acb46c8d51ce8c64f59620a6f40ee0aa3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acb46c8d51ce8c64f59620a6f40ee0aa3">&#9670;&nbsp;</a></span>renderEnd()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual HRESULT Render::renderEnd </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>结束渲染 </p>
<dl class="section return"><dt>返回</dt><dd>HRESULT </dd></dl>

<p>实现了 <a class="el" href="class_i_render.html#a78af271fe6a56fc160c812460187df98">IRender</a>.</p>

</div>
</div>
<a id="a4e0b93cee5690e5c16e753677d7ab50e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4e0b93cee5690e5c16e753677d7ab50e">&#9670;&nbsp;</a></span>setClearColor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Render::setClearColor </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_color.html">Color</a> &amp;&#160;</td>
          <td class="paramname"><em>clear_color</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置清除目标时的颜色 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td><a class="el" href="class_color.html" title="颜色 r,g,b,a">Color</a> &amp; clear_color 颜色值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/code/SkyGameEngine2d/src/render/<a class="el" href="_render_8h_source.html">Render.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
